package net.zjitc.user;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/29 10:54
 */
public class UserTest {
    public static Scanner in=new Scanner(System.in);
    public static void main(String[] args) {

        while (true){
            caidan();

       int choose=in.nextInt();
       switch (choose){
           case 1:
               Denglu();
               break;
           case 2:
               zhuce();
               break;
           case 3:
               System.out.println("欢迎下次光临");
               System.exit(0);
           default:
               System.out.println("输入有误");
               break;
       }
    }
    }

    public static void caidan(){
        System.out.println("-----------------欢迎光临----------------");
        System.out.println("1 登录") ;
        System.out.println("2 注册");
        System.out.println("3 退出 ");
        System.out.println("请输入你的选择：");
    }
   public static void Denglu(){
       System.out.println("----------------登录界面----------------");
       System.out.println("请输入用户名：");
       String name=in.nextLine();
       System.out.println("请输入密码：");
       String password=in.nextLine();
   }
   public static void zhuce(){
       System.out.println("---------------注册界面----------------");
       System.out.println("请输入用户名：");
       String name=in.nextLine();
       System.out.println("请输入密码：");
       String password=in.nextLine();
      User user=new User(name,password);

   }

}
